package com.gitee.service.impl;

import com.gitee.entity.FansList;
import com.gitee.mapper.FansListMapper;
import com.gitee.service.FansListService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class FansListServiceImpl implements FansListService {
    @Resource
    private FansListMapper fansListMapper;

    @Override
    public List<FansList> getFans(Integer userId) {
        return fansListMapper.selectByUserId(userId);
    }
}
